﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace TCOChart
{
    public partial class FormSqlSugar : Form
    {
        public SqlSugarHelper sugarHelper = new SqlSugarHelper();
        public FormSqlSugar()
        {
            InitializeComponent();

            initDb();
        }

        public void initDb()
        {
            if (!sugarHelper.CreateBase())
            {
                AntdUI.Message.error(this, "数据库创建失败", autoClose: 3);
                return;
            }
            sugarHelper.CreateTable();
        }
    }
}
